package com.fengmi.vo;

import lombok.*;

/**
 * Author: 施俊豪
 * Date: 2022/1/17 17:46
 * Note: 信息结果
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@RequiredArgsConstructor
public class InfoResult<T> {
    @NonNull
    private boolean success;

    @NonNull
    private String msg;

    private T data;

    private String bcCode;

    public InfoResult(@NonNull boolean success, @NonNull String msg, T data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
}
